package com.scorpio.scbasics.bizalbum.domain;

import com.scorpio.common.core.domain.BaseEntity;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.scorpio.common.annotation.Excel;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 【请填写功能名称】对象 biz_album
 *
 * @author scorpio
 * @date 2020-10-14
 */
@Data
@TableName("biz_album")
public class BizAlbumEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 图片URL */
    @Excel(name = "图片URL")
    private String imgUrl;

    /** $column.columnComment */
    @Excel(name = "图片URL")
    private String waterImgUrl;

    /** $column.columnComment */
    @Excel(name = "图片URL")
    private String videoUrl;

    /** 是否阅后即焚 */
    @Excel(name = "是否阅后即焚")
    private Long isSnapchat;

    /** $column.columnComment */
    @Excel(name = "是否阅后即焚")
    private Long attestationPhoto;

    /** $column.columnComment */
    @Excel(name = "是否阅后即焚")
    private Long isBonus;

    /** $column.columnComment */
    @Excel(name = "是否阅后即焚")
    private Long currency;

    /** $column.columnComment */
    @Excel(name = "是否阅后即焚")
    private Long type;

    /** 排序，数字越小越靠前 */
    @Excel(name = "排序，数字越小越靠前")
    private Long sort;

    /** $column.columnComment */
    @Excel(name = "排序，数字越小越靠前", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastupdateTime;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("imgUrl", getImgUrl())
            .append("waterImgUrl", getWaterImgUrl())
            .append("videoUrl", getVideoUrl())
            .append("isSnapchat", getIsSnapchat())
            .append("attestationPhoto", getAttestationPhoto())
            .append("isBonus", getIsBonus())
            .append("currency", getCurrency())
            .append("type", getType())
            .append("sort", getSort())
            .append("createTime", getCreateTime())
            .append("lastupdateTime", getLastupdateTime())
            .toString();
    }
}
